package com.example.design.chain.leaveapply.handler;

/**
 * @Description 领导-抽象处理者
 * @ClassName Leader
 * @Author Administrator
 * @Date 2020/5/16 10:44
 * @Version 1.0.0
 */
public abstract class Leader {

    private String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public Leader(String name) {
        this.name = name;
    }

    private Leader next;
    public void setNext(Leader next) {
        this.next=next;
    }
    public Leader getNext() {
        return next;
    }

    //处理请求的方法
    public abstract void handleRequest(int LeaveDays);
}
